package com.danbay.cloud.account;

import com.danbay.framework.db.config.EnableDruid;
import com.danbay.framework.db.config.EnableMybatisPlus;
import com.danbay.framework.feign.EnableFeignAuth;
import com.danbay.framework.redis.config.EnableRedis;
import com.danbay.framework.springnc.EnableNoController;
import com.danbay.framework.swagger.EnableResourceServerWithSwagger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * @author SJG
 */
@EnableDiscoveryClient
@EnableFeignAuth
@EnableFeignClients
@SpringBootApplication
@EnableCircuitBreaker
@EnableResourceServerWithSwagger
@EnableRedis
@EnableDruid
@EnableMybatisPlus
@MapperScan("com.danbay.cloud.account.mapper")
@EnableNoController
@EnableSwagger2
public class AccountServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(AccountServiceApplication.class, args);
    }

}